<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>DuoLam Error System</title>
<style type='text/css'>
*{margin:0;padding:0;font-family:'微软雅黑';}
body{background:#00a2ca}
#main{width:95%;margin:0 auto;}
#title,#line,#code{word-break:break-all;}
#title,#codemain{background:#fff;border:20px solid #fff;border-radius:10px;line-height:24px;margin-top:30px;}
#title{font-size:20px;color:#555;line-height:30px;color:#e20003;padding:15px;}
#line{font-size:16px;}
#codemain{font-size:14px;margin-bottom:30px;}
#code{background:#efefef;bordpException:1px solid #feffb1;bordpException-radius:5px;}
.highcode{background:#ccc;bordpException:1px solid #e2e371;bordpException-radius:5px;}
.highcode span{color:red}
#info{margin-top:15px;font-style:italic;color:green}
</style>
</head>
<body>
	<div id="main">
		<div id="title">
			<?php
			echo $msg.'<br />';
			if($db)
			{
				echo '出错语句：'.$other['sql'].'<br />';
				echo '出错信息：'.$other['errorInfo'].'<br />';
				echo '出错代码：'.$other['errorCode'];
			}
			?>
		</div>
		<div id="codemain">
			<?php 
				foreach(dpException::$trace as $info)
				{
					if(is_array($info) && !empty($info["file"]))
					{
						$data = dpException::setFile($info['file'],$info['line']);
						if(is_array($data) or !empty($data))
						{
			?>
			<div id="line">&nbsp;<?php echo $info['file'] . ' On Line ' . $info['line']; ?></div>
			<?php
							foreach($data as $result)
							{
			?>
			<div id="code"><?php echo $result; ?></div>
			<?php
							}
						}
					}
				}
			?>
			<div id="info">&nbsp;服务器信息：<?php echo $_SERVER['SERVER_SOFTWARE']; ?>　DuoLam版本：<?php echo D::version(); ?>&nbsp;</div>
		</div>
	</div>
</body>
</html>